$NG.AllReady(function (page, { useAction, useBeforeClick, useValuesChange, useClick, useUpdateRow, subscribe, useUpdateRows }) {
    const mstform = $NG.getCmpApi("p_form_zlglx_m")
    
    isYtpd()
    if(page.oType == 'add'){}
    if (!mstform.getItem("u_tbnd").getValue()) {
        mstform.getItem("u_tbnd").setValue({
            label: new Date().getFullYear(),
            value: new Date().getFullYear(),
        })
    }
    useValuesChange(()=>{
        isYtpd()
    },"p_form_zlglx_m.u_sfytkyxm")

    // 是否依托判断
    function isYtpd(){
        const u_sfytkyxm = mstform.getItem("u_sfytkyxm").getValue()
        let hid = true
        if(u_sfytkyxm == '01'){
            hid = false
        }
        $NG.updateUI((updater)=>{
            updater.fieldSetForm.p_form_zlglx_m.u_ytkyxm.setProps({
                hidden:hid,
                // required:!hid
            })
        })
    }
})